<template>
  <div>
      <router-view></router-view>
      <footer>
        <router-link active-class="active" to="/index/home">首页</router-link>
        <router-link active-class="active" to="/index/cate">分类</router-link>
        <router-link active-class="active" to="/index/shop">购物车</router-link>
        <router-link active-class="active" to="/index/mine">我的</router-link>
      </footer>
  </div>
  
</template>

<script>
export default {

}
</script>

<style>
footer {
  width: 100vw;
  height: 1rem;

  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;

  border: 0.01rem solid #ccc;

  background: #fff;
}

footer a {
  flex: 1;
  font-size: 0.35rem;
  text-align: center;
  line-height: 1rem;
}

.router-link-active {
  color: #ff4400;
}
</style>